﻿using ICAM.DataLayer;
using ICAM.Model;
using ICAM.ViewModel;
using System.Windows;
using System.Windows.Controls;
using static ICAM.Model.AlarmDetail;

namespace ICAM.View
{
    /// <summary>
    /// AlaramRestore.xaml 的交互逻辑
    /// </summary>
    public partial class AlaramRestoreView : UserControl
    { 
        public AlaramRestoreView()
        {
            InitializeComponent(); 
        } 
    }

    public class AlarmRestorationInfoModule : ViewModelBase
    {//告警ID
        public string AlarmID
        {
            get
            {
                return info.AlarmID;
            }
            set
            {
                info.AlarmID = value;
            }
        }
        public int PicOrder
        {
            get
            {
                return info.PicOrder;
            }
            set
            {
                info.PicOrder = value;
                this.OnPropertyChanged("PicOrder");
            }
        }//告警小图序号
        public string Position
        {
            get
            {
                return info.Position;
            }
            set
            {
                info.Position = value;
                this.OnPropertyChanged("Position");
            }
        }//地点
        public string PicUrl
        {
            get
            {
                return info.PicUrl;
            }
            set
            {
                info.PicUrl = value;
                this.OnPropertyChanged("PicUrl");
            }
        }//图片url
        public string AlarmTime
        {
            get
            {
                return info.AlarmTime;
            }
            set
            {
                info.AlarmTime = value;
                this.OnPropertyChanged("AlarmTime");
            }
        }//时间

        public AlarmRestorationInfo info;

        public AlarmRestorationInfoModule(AlarmRestorationInfo info)
        {
            this.info = info;
        }
    }
}
